<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.util.List"%>
<%@ page import="jman.competition15.TransferRecord"%>
<%@ page import="jman.competition15.UserService"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>转账记录</title>
</head>
<body>
<%
String userName=(String)request.getAttribute("userName");

%>
<h2><%=userName %>,您的转账记录：</h2>
<table border="1">
<tr>
<th>转账时间</th>
<th>转账金额</th>
<th>转账对象</th>
</tr>
<%
List<TransferRecord> tRList=(List<TransferRecord>)request.getAttribute("TransferRecords");
for(int i=0;i<tRList.size();++i){
%>
<tr>
<td><%=tRList.get(i).getTime() %></td>
<td><%=tRList.get(i).getCash() %></td>
<td><%=tRList.get(i).getUserTo()%></td>
</tr>
<%
}
%>
</table>
</body>
</html>